package com.model.vo.sys.menu;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class ErrorSysMenuVO {
    @ApiModelProperty(value = "菜单权限ID,自动递增",required = true)
    private Long sysMenuId;
    @ApiModelProperty(value = "菜单名称",required = true)
    private String menuName;
    @ApiModelProperty(value = "父菜单ID",required = true)
    private Long parentId;
    @ApiModelProperty(value = "显示顺序",required = true)
    private Integer orderNum;
    @ApiModelProperty(value = "路由地址",required = true)
    private String path;
    @ApiModelProperty(value = "组件路径",required = true)
    private String component;
    @ApiModelProperty(value = "0:外链,1:非外链",allowableValues = "0,1",required = true)
    private Byte isFrame;
    @ApiModelProperty(value = "0:缓存,1:不缓存",allowableValues = "0,1",required = true)
    private Byte isCache;
    @ApiModelProperty(value = "0:目录,1:菜单,2:按钮",allowableValues = "0,1,2",required = true)
    private Byte menuType;
    @ApiModelProperty(value = "0:显示,1:隐藏",allowableValues = "0,1",required = true)
    private Byte visible;
    @ApiModelProperty(value = "权限标识",required = true)
    private String perms;
    @ApiModelProperty(value = "菜单图标",required = true)
    private String icon;
    @ApiModelProperty(value = "错误描述",required = true)
    private String errMsg;

    public ErrorSysMenuVO errMsg(String errMsg){
        this.errMsg = errMsg;
        return this;
    }
}
